package com.smfx.yxt.reqVo;

import org.apache.commons.lang.StringUtils;

import com.smfx.yxt.model.TeacherExchangeCourseApplyItem;
import com.smfx.yxt.utils.DateUtil;

public class TeacherExchangeCourseApplyItemReqVO extends TeacherExchangeCourseApplyItem {

	private static final long serialVersionUID = -1113022054240263904L;

	private String courseDateStr;
	
	private String exchangeCourseDateStr;
	
	private String classGrade;
	
	public String getCourseDateStr() {
		return courseDateStr;
	}

	public void setCourseDateStr(String courseDateStr) {
		if(StringUtils.isNotBlank(courseDateStr)) {
			super.setCourseDate(DateUtil.strToDate(courseDateStr, DateUtil.DEFAULT_DATE_FORMAT3));
		}
		this.courseDateStr = courseDateStr;
	}

	public String getExchangeCourseDateStr() {
		return exchangeCourseDateStr;
	}

	public void setExchangeCourseDateStr(String exchangeCourseDateStr) {
		if(StringUtils.isNotBlank(exchangeCourseDateStr)) {
			super.setExchangeCourseDate(DateUtil.strToDate(exchangeCourseDateStr, DateUtil.DEFAULT_DATE_FORMAT3));
		}
		this.exchangeCourseDateStr = exchangeCourseDateStr;
	}

	public String getClassGrade() {
		return classGrade;
	}

	public void setClassGrade(String classGrade) {
		if(StringUtils.isNotBlank(classGrade)) {
			super.setGrade(Integer.valueOf(classGrade.split("-")[0]));
			super.setClazz(Integer.valueOf(classGrade.split("-")[1]));
		}
		this.classGrade = classGrade;
	}

	
}
